package models

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)" json:"username"`
	Password string `gorm:"type:varchar(200)" json:"password"`
}

type Book struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)" json:"title"`
	Content string `gorm:"type:varchar(200)" json:"content"`
	Author  string `gorm:"type:varchar(50)" json:"author"`
}
